package com.genexususa.eo.bing.test.set;

import com.genexususa.eo.bing.connection.AccountManager;
import com.genexususa.eo.bing.test.TestUtil;

public class ConsumeSetAnalyticsType {
    public static void main(String[] args) {
        TestUtil testUtil = new TestUtil();
        String adGroupAdRotationsXML	=	"<Bing_AccountAnalyticsTypeCollection xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
	                                            "\t<AccountAnalyticsType xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
	                                                "\t\t<GxAccountId>984948891</GxAccountId>\n" +
	                                                "\t\t<BingAccountId>" + testUtil.accountId1 + "</BingAccountId>\n" +
                                                    "\t\t<Type>Enabled</Type>\n" +
	                                            "\t</AccountAnalyticsType>\n" +
	                                            "\t<AccountAnalyticsType xmlns=\"https://adcenter.microsoft.com/v8\">\n" +
	                                                "\t\t<GxAccountId>984948892</GxAccountId>\n" +
                                                    "\t\t<BingAccountId>" + testUtil.accountId2 + "</BingAccountId>\n" +
	                                                "\t\t<Type>Enabled</Type>\n" +
	                                            "\t</AccountAnalyticsType>\n" +
	                                        "</Bing_AccountAnalyticsTypeCollection>";
        AccountManager resource = new AccountManager();
        System.out.println("Consuming SetAnalyticsType.....");
        String userName = testUtil.userName;
        String password = testUtil.password;
        String developerToken = testUtil.developerToken;
        long customerId = testUtil.customerId;
        long customerAccountId = testUtil.customerAccountId;
        String applicationId = testUtil.applicationId;
        //String result = resource.setAnalyticsType(userName, password, developerToken, customerId, customerAccountId, applicationId, adGroupAdRotationsXML);
        //System.out.println("Result:\n" + result);
    }
}
